package org.bigdata.zc.mongo.repository;

import org.bigdata.zc.mongo.CupWin;
import org.bigdata.zc.mongo.TeamWin;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by Stephen on 2017/10/30.
 */
public interface TeamRepository extends MongoRepository<TeamWin, Long> {
     List<TeamWin> findByTeamId(String teamId);
     TeamWin findByTeamIdAndCupNo(String teamId,String cupNo);
     List<TeamWin> findByCupNo(String cupNo);
}
